const mongoose = require("mongoose")
// mongoose.set('useFindAndModify', false)
const schema = new mongoose.Schema({
  title: { type: String },
  categories:[{type:mongoose.SchemaTypes.ObjectId,ref:'Category'}],
  body:{type:String},
  
});

module.exports = mongoose.model('Article', schema)


//模型文件